package com.gopay.common.domain.bis;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.gopay.common.domain.BaseEntity;

/**
 * 易宝快捷绑卡信息表
 * 
 * @BisBankBindCardInfo.java
 * @author zhengxue
 * @2015-9-28 下午4:29:17 www.gopay.com.cn Inc.All rights reserved.
 */
@Entity
@Table(name = "BIS_BANK_BIND_CARD_INFO")
public class BisBankBindCardInfo extends BaseEntity {

    /**
     * 
     */
    private static final long serialVersionUID = 4474225160596675534L;

    /**
     * 用户身份标识(证件号)
     */
    @Column(name = "USER_ID")
    private String userId;

    /**
     * 绑卡ID
     */
    @Column(name = "BIND_ID")
    private String bindId;

    /**
     * 卡号前六位
     */
    @Column(name = "CARD_TOP")
    private String cardTop;

    /**
     * 卡号后四位
     */
    @Column(name = "CARD_LAST")
    private String cardLast;

    /**
     * 卡名称
     */
    @Column(name = "CARD_NAME")
    private String cardName;

    /**
     * 绑卡有效期
     */
    @Column(name = "BIND_VALID")
    private String bindValid;

    /**
     * 银行码
     */
    @Column(name = "BANK_CODE")
    private String bankCode;

    /**
     * 卡号
     */
    @Id
    @Column(name = "CARD_NUM")
    private String cardNum;

    /**
     * 手机号
     */
    @Column(name = "PHONE")
    private String phone;

    /**
     * 商户编号
     */
    @Column(name = "MERCHANT_ID")
    private String merchantId;
    
    /**
     * 创建时间
     */
    @Column(name = "CREATED_TS")
    private Date created;

    /**
     * 记录最后修改时间
     */
    @Column(name = "LAST_UPD_TS")
    private Date lastUpdTs;

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getBindId() {
        return bindId;
    }

    public void setBindId(String bindId) {
        this.bindId = bindId;
    }

    public String getCardLast() {
        return cardLast;
    }

    public void setCardLast(String cardLast) {
        this.cardLast = cardLast;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public String getBindValid() {
        return bindValid;
    }

    public void setBindValid(String bindValid) {
        this.bindValid = bindValid;
    }

    public String getBankCode() {
        return bankCode;
    }

    public void setBankCode(String bankCode) {
        this.bankCode = bankCode;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public String getCardTop() {
        return cardTop;
    }

    public void setCardTop(String cardTop) {
        this.cardTop = cardTop;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(String merchantId) {
        this.merchantId = merchantId;
    }

    public Date getCreated() {
        return created;
    }

    public void setCreated(Date created) {
        this.created = created;
    }

    public Date getLastUpdTs() {
        return lastUpdTs;
    }

    public void setLastUpdTs(Date lastUpdTs) {
        this.lastUpdTs = lastUpdTs;
    }

}
